<!--
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2022-12-02 17:04:52
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-07-31 16:28:59
 * @FilePath: \cxl-h5\src\pages\vehicleCondition\case\Index.vue
-->
<template>
    <section class="case">
        <template v-if="Number(type) === 1">
            <!-- 出险 -->
            <img src="../../../assets/images/pz.png" />
        </template>
        <template v-else-if="Number(type) === 2">
            <!-- 维保车况 -->
            <img src="../../../assets/images/wbb.png" />
        </template>
    </section>
</template>

<script lang="ts" setup>
import { editPageTitle } from '@/utils'
import useWeixinSdk from '@/utils/WXSdk'
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'

const router = useRoute()
//1出险 2 //维修版
const type = ref(router.query.type as string)

onMounted(() => {
    editPageTitle(
        Number(type.value) === 1 ? '出险车况案例' : Number(type.value) === 2 ? '维保车况案例' : '新能源车况案例'
    )
    useWeixinSdk.disableShare()
})
</script>

<style scoped lang="scss">
.case {
    height: 100%;
    overflow-y: auto;
    img {
        display: block;
        width: 100%;
    }
}
</style>
